module.exports = {
  
  async ee(title, lsls) {
    //args.titleDR =
    //args.httpDR =

    let res = await http_dh.get('https:' + lsls[1], header_asb)
    let ixa = res.data

    let path = ixa.match(/php\?id=(\w{10,30})/)[1]
    let obj = path.match(/_(\w+?)_(\w+)/)

    let httpCRa =
      'https://fc.imgscloud.com/' +
      obj[1] +
      '/' +
      obj[2] +
      '/' +
      obj[2] +
      '.m3u8'
      let XZBFQ='DSF'
//if ($prefs.get('自身播放器')) {  XZBFQ='BFQ'}
    $router.to($route(XZBFQ, { title: title, httpCR: httpCRa, img: lsls[2] }))
  },
  async rr(title, lsls) {
    let res = await http_dh.get('https:' + lsls[1], header_asb)
    let ixa = res.data

    if (ixa.indexOf("value='同意(enter)'") != -1) {
      this.finish()
      $router.to($route('cookie_huoqu',{httpDR:lsls[1]}))
      
    } else {
      let path = ixa.match(/iframe_url_re="(.+?)"/)[1]

      res = await http_dh.get('https:' + path, header_asb)
      ixa = res.data

      let httpCRa = ixa.match(/url: *'(.+?)'/)[1]

      let XZBFQ='DSF'
//if ($prefs.get('自身播放器')) {  XZBFQ='BFQ'}
      $router.to($route(XZBFQ, { title: title, httpCR: httpCRa, img: lsls[2] }))
    }
  }
}
